package com.atguigu.dao;

import com.atguigu.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderDao {
    Order getOrder(Order order);

    void save(Order order);

    Map findById(Integer id);

    Integer getTodayNums(String thisDay);

    Integer getTodayTravelNums(@Param("day") String day,@Param("orderStatus") String orderStatus);

    Integer getWeekOrderNums(@Param("thisWeekMonday") String thisWeekMonday,
                             @Param("lastDayOfWeek") String lastDayOfWeek,
                             @Param("orderStatus")String orderStatus);

    Integer getWeekTravelNums(@Param("thisWeekMonday") String thisWeekMonday,
                              @Param("lastDayOfWeek") String lastDayOfWeek,@Param("orderStatus")String orderStatus);

    Integer getMonthOrderNums(@Param("firstDay") String firstDay, @Param("lastDay") String lastDay);

    Integer getMonthTravelNums(@Param("firstDay") String firstDay,@Param("lastDay") String lastDay,@Param("orderStatus") String orderStatus);

}
